package cn.yj.common.config;

import cn.yj.alipay.config.AliPayAutoConfig;
import cn.yj.common.PayAutoConfigurationConditional;
import cn.yj.wx.pay.config.WechatPayAutoConfig;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author 永健
 * @since 2022-02-18 17:03
 */
@Conditional(value = PayAutoConfigurationConditional.class)
public class PayAutoConfiguration implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{WechatPayAutoConfig.class.getName(),AliPayAutoConfig.class.getName()};
    }
}
